package de.homelabs.spring.freemarker.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.stereotype.Repository;

@Repository
@Entity
@Table(name="templateelemet")
public class HLTemplateElement {

	@Id
	private int id;
	private String name;
	@Transient
	private String templateKey;
	@Transient
	private String templateUrl;
	@Transient
	private int order;
	
	/**
	 * default constructor
	 */
	public HLTemplateElement(){}
	
	/**
	 * parameter constructor
	 */
	public HLTemplateElement(int id, String name, String templateKey,
			String templateUrl, int order) {
		super();
		this.id = id;
		this.name = name;
		this.templateKey = templateKey;
		this.templateUrl = templateUrl;
		this.order = order;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTemplateKey() {
		return templateKey;
	}
	public void setTemplateKey(String templateKey) {
		this.templateKey = templateKey;
	}
	public String getTemplateUrl() {
		return templateUrl;
	}
	public void setTemplateUrl(String templateUrl) {
		this.templateUrl = templateUrl;
	}
	public int getOrder() {
		return order;
	}
	public void setOrder(int order) {
		this.order = order;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
}
